package org.http;


import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author andy
 */
@Data
public class Headers {
    private String method;

    private String path;

    private String version = "HTTP/1.1";

    private String body;

    private Map<String, String> headerMap = new HashMap<>();

    public void set(String key, String value) {
        headerMap.put(key, value);
    }

    public String get(String key) {
        return headerMap.get(key);
    }
}
